#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main()
{
    const char *filename = "./record.txt";

    struct stat fileStatus;

    stat(filename, &fileStatus);

    printf("file size = %ld\n", fileStatus.st_size);

    return 0;
}